<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
<title>图片总置于顶端</title>
</head>

<body>
<div id="Tdiv" style="position: absolute; left: 0; top: 0; z-index: 25">
    <img id="image1" src="mrsoft.jpg" width="52" height="249">
</div>
<script type="text/javascript">
var ImgW=image1.width;
function permute(tfloor,Top,left){
    var RealTop=document.body.scrollTop || document.documentElement.scrollTop;
    buyTop=Top+RealTop;
    document.getElementById(tfloor).style.top=buyTop+"px";
    var RealLeft=document.body.scrollLeft || document.documentElement.scrollLeft;
    var bWidth=document.documentElement.clientWidth;
    var buyLeft=RealLeft+bWidth-ImgW;
    document.getElementById(tfloor).style.left=buyLeft-left+"px";
}
setInterval('permute("Tdiv",2,2)',1);
</script>
<div style="text-align: center;">
    <img src="gougo.jpg">
</div>
</body>
</html>
